public class Armstrong {
  public static void main(String[] args) {
    int a;
    int b;
    int c;
    int temp;
    System.out.printf("There are some Amstrong number:%n");
    for(a=1;a<10;a++) {
      for(b=0;b<10;b++) {
        for(c=0;c<10;c++) {
          temp = a*100 + b*10 + c;
          if(a*a*a + b*b*b + c*c*c == temp)
          {
            System.out.printf("%d%n",temp);
          }
        }
      }
    }
  }
}
